﻿<?php
	print_r($data);
	
	?>
	<style>
		.page_title{
			font-size:24px;
			text-align:center;
			margin:10px;
		}
		#table_title{
			font-size:16px;
			font-weight:bold;
			color:#489BF0;
			border-bottom:1px solid #489BF0;
		}
		#table_title div{
			float:left;
			margin-left:5px;
			text-align:center;
		}
		.row{
			height:30px;
			line-height:30px;
		}
		.row div{
			height:30px;
			line-height:30px;
			float:left;
			margin-left:5px;
			font-size:14px;
			text-align:center;
			overflow:hidden;
			border-bottom:1px solid #489BF0;
			/* border-right:1px solid #489BF0; */
		}
		.highlight{
			background-color:#D7E0EF;
		}
		.col_1{
			width:50px;
		}
		.col_2{
			width:70px;
		}
		.col_3{
			width:70px;
		}
		.col_4{
			width:80px
		}
		.col_5{
			width:80px;
		}
		.col_6{
			width:50px
		}
		.col_7{
			width:100px
		}
		.col_8{
			width:100px;
		}
	</style>
	<div class="page_title">正在申请</div>
	<div id="list">
		<div id="table_title" class="clearfix">
			<div class="col_1">状态</div>
			<div class="col_2">院系</div>
			<div class="col_3">课程名称</div>
			<div class="col_4">教师姓名</div>
			<div class="col_5">教师类型</div>
			<div class="col_6">职称</div>
			<div class="col_7">课酬</div>
			<div class="col_8">提交时间</div>
		</div>
		<?php $i = true;
				foreach($data as $row):?>
		<?php $i =!$i;?>
		<div class="row <?php if($i) echo "highlight"; ?> clearfix">
			<div class="col_1"><?php echo ($row->approval==0)?"处理中":"已处理"?></div>
			<div class="col_2"><?php echo $row->department; ?></div>
			<div class="col_3"><?php echo $row->courseName; ?></div>
			<div class="col_4"><?php echo $row->teacherName; ?></div>
			<div class="col_5"><?php echo $row->teacherType; ?></div>
			<div class="col_6"><?php echo $row->jobTitle; ?></div>
			<div class="col_7"><?php echo $row->salary; ?></div>
			<div class="col_8"><?php echo $row->time; ?></div>
			<div class="col_9"><div class="common_button" name="course_viewapprovingcourses_id_<?php echo $row->id; ?>">查看</div></div>
		</div>
		<?php endforeach;?>
	</div>